package com.pug.security.config.mybatis;

/**
 * MyBatisPlus配置类
 */
//@Configuration
//public class MyBatisPlusConfig {
//
//    // 最新版
//    @Bean
//    public MybatisPlusInterceptor mybatisPlusInterceptor() {
//        MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
//        PaginationInnerInterceptor paginationInnerInterceptor = new PaginationInnerInterceptor(DbType.MYSQL);
//        paginationInnerInterceptor.setOptimizeJoin(true);
//        paginationInnerInterceptor.setMaxLimit(500L);
//        paginationInnerInterceptor.setOverflow(false);
//        interceptor.addInnerInterceptor(paginationInnerInterceptor);
//        return interceptor;
//    }
//
//}